package cn.jyc.ssm01.service;

import cn.jyc.ssm01.dao.BTypeMapper;
import cn.jyc.ssm01.dao.BillsMapper;
import cn.jyc.ssm01.pojo.BType;
import cn.jyc.ssm01.pojo.Bills;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class BillService {
    @Autowired
    private BillsMapper bm;
    @Autowired
    private BTypeMapper btm;

    public List<BType> show() {
        return btm.show();
    }

    public List<Bills> qry(Integer typeId, String t1, String t2, Double d1, Double d2) {
        return bm.qry(typeId, t1, t2, d1, d2);
    }

    public Integer add(Bills b) {
        return bm.add(b);
    }
}
